require("../../assets/js/commonCss"); //导入公共样式
require("./running.less"); //引入自己的样式

// 导入axios
const axios = require("../../utils/request");
// 设置服务器地址
axios.defaults.baseURL = "http://fitness.h5.itsource.cn:3701";

// 导入weui
require("weui"); //导入weui的css
let weui = require("weui.js"); //导入weui的js

// 地图详情
document.querySelector("#gps").addEventListener("click", function() {
    // alert(111)
    location.href = "./map-mode.html"
})

// 暂停按钮添加点击事件
document.querySelector("#stopBtn").addEventListener("click", function() {
        document.querySelector(".suspend").style.display = "none"
        document.querySelector(".continue-end").style.display = "flex"
    })
    // 继续按钮添加点击事件
document.querySelector("#continue").addEventListener("click", function() {
        document.querySelector(".suspend").style.display = "flex"
        document.querySelector(".continue-end").style.display = "none"
    })
    // 结束按钮
document.querySelector("#end").addEventListener("click", function() {
    location.href = "./run.html"
})